package com.teacher.util;

import java.io.IOException;
import java.util.Properties;

/**
 * Tools--bdqnPractice
 *
 * @author: Jovi
 * @createTime: 2017-09-25 15:17
 **/
public class Tools {


    private static Properties p = new Properties();

    static{

        try {
            p.load(Tools.class.getClassLoader().getResourceAsStream(
                    SysConstants.SYS_PROPERTYNAME.getName()
            ));
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

    public static String getValue(String key) {
        return p.getProperty(key);
    }


}
